<template>
	<view>
		<view v-for="(itme,index) in imgs" :key="index">
			<view style="text-align: center;font-size: 15px;">{{itme.wskximgName}}</view>
			<image style="width: 100%;" :src="itme.wskximgUrl" mode="scaleToFill"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgs: []
			}
		},
		onLoad(datas) {
			this.imgList(datas.more)
			uni.setNavigationBarTitle({
				title: datas.title
			});
		},
		methods: {
			imgList(more) {
				uni.request({
					url:'https://www.hngsxy.com/mybatisplus/gsxyWskximg/gsxyWskximgList',
					// url:'http://localhost:8080/gsxyWskximg/gsxyWskximgList',
					data:{
						wskximgType: more
					},
					success: (res) => {
						this.imgs = res.data
					},
					fail: (res) => {
						console.log("未知错误");
					}
				})
			}
		}
	}
</script>

<style>

</style>
